package me.wz.util.sdbc.dbutils;

import me.wz.util.sdbc.IDialect;
import me.wz.util.sdbc.dialect.H2;
import me.wz.util.sdbc.dialect.Mysql;
import me.wz.util.sdbc.dialect.Oracle;

import java.util.HashMap;
import java.util.Map;

public class Dialect {
    public static final Map<String, IDialect> mapp = new HashMap<String, IDialect>();
    static {
        mapp.put("h2", new H2());
        mapp.put("mysql", new Mysql());
        mapp.put("oracle", new Oracle());
    }
    public static IDialect getDialect(String key){ return mapp.get(key.toLowerCase()); }
}
